import React from 'react'
import { useRoutes } from 'react-router-dom'
import App from './App'
import ItemInformation from './pages/ItemInformation'
import RouterTest from './pages/RouterTest'

export default function MyRoutes(){
    let element = useRoutes([
        {path:"/",element:<App />},
        {path:"/ItemInformation",element:<ItemInformation />},
        {path:"/RouterTest/:id",element:<RouterTest />},
        {path:"*",element:<div>Page not found 404.</div>},
    ]);

    return element;
}


